<include file="public@header" />
</head>

<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:url('AdminReserve/index')}">豪车租赁预约管理</a></li>
        </ul>
        <form method="post" class="js-ajax-form margin-top-20">
            <div class="table-actions">
                <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>-->
            </div>
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th>车辆品牌</th>
                        <th>车辆型号</th>
                        <th>车辆颜色</th>
                        <th>是否接受颜色调换</th>
                        <th>使用方式</th>
                        <th>姓名</th>
                        <th>联系电话</th>
                        <th>预定车辆ID</th>
                        <th>状态</th>
                        <th width="160">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <empty name="reserves">
                        <td colspan="4" class="text-center"> aOh! 暂时还没有添加豪车租赁预约! </td>
                    </empty>
                    <foreach name="reserves" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.brand}</td>
                            <td>{$vo.model}</td>
                            <td>{$vo.color}</td>
                            <td>{$vo.change_color}</td>
                            <td>{$vo.use_type}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.telephone}</td>
                            <td><span class="label label-info">{$vo.car_id??"未选择"}</span>
                                <notempty name="vo.car_id">
                                    <a class="btn btn-primary btn-sm" href=" {:url( 'AdminCar/index',[ 'id'=>$vo.car_id])}">查看</a>
                                </notempty>
                            </td>
                            <td>{$arrStatus[$vo['status']]}</td>

                            <td>
                                <if condition="$vo['status'] eq 0">
                                    <a class="js-ajax-dialog-btn" href="{:url('AdminReserve/upStatus',['id'=>$vo['id'],'status'=>1])}">已联系</a>
                                </if>
                                <a class="js-ajax-delete" href="{:url('AdminReserve/delete',['id'=>$vo['id']])}">删除</a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
            <div class="table-actions">
                <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>-->
            </div>
        </form>
        <ul class="pagination">{$page|default=''}</ul>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>